import request from '@/utils/request'

export function getPromptList() {
  return request({
    url: '/api/prompt/query',
    method: 'get',
  })
}

export function deletePrompts(ids) {
  return request({
    url: '/api/prompt/remove',
    method: 'post',
    params: {
      ids: ids.join(','),
    },
  })
}

export function addPrompt(data) {
  return request({
    url: '/api/prompt/add',
    method: 'post',
    data,
  })
}

export function updatePrompt(data) {
  return request({
    url: '/api/prompt/update',
    method: 'post',
    data,
  })
}
